package cn.edu.scau.cmi.zengGuanSheng.adapterPattern;

import javafx.fxml.FXML;

import javafx.scene.control.Button;
import cn.edu.scau.cmi.zengGuanSheng.comprehensiveExperiment.MainClient;
import javafx.event.ActionEvent;

import javafx.scene.control.TextArea;

public class AdapterOfClassController {
	@FXML
	private Button btn;
	@FXML
	private TextArea textArea;
	@FXML
	private Button btn_return;

	// Event Listener on Button[#btn].onAction
	@FXML
	public void eventShow(ActionEvent event) {
		// TODO Autogenerated
		AdapterOfClass classTarget = new AdapterOfClass();
		textArea.setText(classTarget.outPut220VTo110V());
	}
	// Event Listener on Button[#btn_return].onAction
	@FXML
	public void eventReturn(ActionEvent event) {
		// TODO Autogenerated
		MainClient main = new MainClient();
		main.start(AdapterOfClassClient.primaryStage);
	}
}
